package com.dhcc.bpm.modules.orga.service.impl;

import com.dhcc.bpm.modules.orga.entity.ProduceApply;
import com.dhcc.bpm.modules.orga.vo.AppProduceVo;
import com.dhcc.bpm.modules.orga.vo.ProduceApplyVO;
import com.dhcc.bpm.modules.orga.mapper.ProduceApplyMapper;
import com.dhcc.bpm.modules.orga.service.IProduceApplyService;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * @ClassName ProduceApplyServiceImpl
 * @Description 测试申请审批表 服务实现类
 * @Author daina
 * @Date 2020/2/24 19:25
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Service("opc_produce_apply")
public class ProduceApplyServiceImpl extends BaseServiceImpl<ProduceApplyMapper, ProduceApply> implements IProduceApplyService {

	@Override
	public IPage<ProduceApplyVO> selectProduceApplyPage(IPage<ProduceApplyVO> page, ProduceApplyVO produceApply) {
		return page.setRecords(baseMapper.selectProduceApplyPage(page, produceApply));
	}

	@Override
	public Integer selectChangeNum(String pid) {
		return baseMapper.selectChangeNum(pid);
	}

	@Override
	public IPage<ProduceApplyVO> selectProduceApplyChangePage(IPage<ProduceApplyVO> page, ProduceApplyVO produceApply) {
		return page.setRecords(baseMapper.selectProduceApplyChangePage(page, produceApply));
	}

	@Override
	public AppProduceVo selectProcueById(Long id) {
		return baseMapper.selectProcueById(id);
	}

	@Override
	public ProduceApplyVO selectProApplyById(Long id) {
		return baseMapper.selectProApplyById(id);
	}
	@Override
	public List<ProduceApplyVO> selectProApplyByAppId(Long id) {
		return baseMapper.selectProApplyByAppId(id);
	}

}
